﻿
@using PSI.Models;

@model FId

@{
    ViewBag.Title = @Model.Name+"管理";
}


@section PSI_JS{

    <script src="@Url.Content("~/Scripts/PSI/App.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/PSI/BaseCode/Runtime/MainForm.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/PSI/BaseCode/Runtime/BaseCodeInfoEdit.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>

}

<script type="text/javascript">
    Ext.onReady(function () {
       var app = Ext.create("PSI.App", {
            userName: "@ViewBag.UserName",
            showRecent: true
        });

        app.createMainUI();

        var mp = app.getMainPanel();

        var mainForm = Ext.create("PSI.BaseCode.Runtime.MainForm", { fid: "@Model.Id", name: "@Model.Name", reid: "@Model.RefId" });

        mainForm.createUI();
        mp.add(mainForm.getMainPanel());
    });
</script>
